lunomobs:register_mob("lunomobs:moose1", {
	type = "animal",
	hp_max = 2,
	visual = "mesh",
	textures = {"mobs_moose1.png"},
	mesh = "mobs_moose.x", --Não funciona: .x3d .3ds
	collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.4, 0.3},
	visual_size= {x=2.5, y=2.5},
	makes_footstep_sound = true,
	walk_velocity = 2,
	armor = 200,
	drops={ 
		{name="lunomobs:meat_raw", chance=1, min=1, max=4,},
	},
	drawtype = "front",
	water_damage = 1,
	lava_damage = 10,
	light_damage = 0,
	sounds = {
		--random = "mobs_moose_random",
		--die = "mobs_moose_die",
	},
	view_range = 15,
	animation = {
		speed_normal = 15,
		stand_start=0, stand_end=76,
		walk_start=77, walk_end=99,
	},
	follow = "farming:wheat",
	on_rightclick = function(self, clicker)
		local item = clicker:get_wielded_item()
		if item:get_name() == "farming:wheat" then
			if not self.tamed then
				if not minetest.setting_getbool("creative_mode") then
					item:take_item()
					clicker:set_wielded_item(item)
				end
				minetest.sound_play("obj_chew", {pos=self.pos, max_hear_distance = 5}) --toca som "obj_chew".ogg a distancia de 5 blocos do usuário.
				self.tamed = true
			end
		end
	end,
})

--lunomobs:register_spawn("lunomobs:moose1", {"default:dirt_with_grass", "default:grass_1", "default:grass_2", "default:grass_3", "default:grass_4", "default:grass_5"}, 20, 8, 9000, 1, 31000)

minetest.register_craftitem("lunomobs:moose1", {
	description = "Alce",
	groups = { mobs=1 },
	inventory_image = "mob_moose1.png",
	on_place = function(itemstack, placer, pointed_thing)
		if pointed_thing.above then
			minetest.env:add_entity(pointed_thing.above, "lunomobs:moose1")
			--minetest.sound_play("mobs_sheep", {pos=placer.pos, max_hear_distance = 5}) --toca som "mobs_sheep".ogg a distancia de 5 blocos do usuário.
			if not minetest.setting_getbool("creative_mode") then itemstack:take_item() end
		end
		return itemstack
	end,
})
